#include <stdio.h>

unsigned int ConvertNum ( char str[] );

int main()
{
    char ch, numStr[20] = { 0 };
    unsigned int num;
    int i = 0;
    
    gets(numStr);
    num = ConvertNum(numStr);
    printf("%u", num);
    
    return 0;
}


unsigned int ConvertNum ( char str[] ){
   unsigned int sum = 0;
   char* cur = str;
   while(*cur){
       if(*cur >= '0' && *cur <= '9'){
           sum = 10 * sum + (*cur - '0');
       }
       cur++;
   }
    return sum;
}